Optimal. Leaf size=206 \[ \frac {(2 a+b) \left (8 a^2+8 a b+5 b^2\right ) \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{16 a^{7/2} (a+b)^{7/2} d}+\frac {b \cos (c+d x) \sin (c+d x)}{6 a (a+b) d \left (a+b \sin ^2(c+d x)\right )^3}+\frac {5 b (2 a+b) \cos (c+d x) \sin (c+d x)}{24 a^2 (a+b)^2 d \left (a+b \sin ^2(c+d x)\right )^2}+\frac {b \left (44 a^2+44 a b+15 b^2\right ) \cos (c+d x) \sin (c+d x)}{48 a^3 (a+b)^3 d \left (a+b \sin ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 206, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {3263, 3252, 12,
3260, 211} \begin {gather*} \frac {5 b (2 a+b) \sin (c+d x) \cos (c+d x)}{24 a^2 d (a+b)^2 \left (a+b \sin ^2(c+d x)\right )^2}+\frac {(2 a+b) \left (8 a^2+8 a b+5 b^2\right ) \text {ArcTan}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{16 a^{7/2} d (a+b)^{7/2}}+\frac {b \left (44 a^2+44 a b+15 b^2\right ) \sin (c+d x) \cos (c+d x)}{48 a^3 d (a+b)^3 \left (a+b \sin ^2(c+d x)\right )}+\frac {b \sin (c+d x) \cos (c+d x)}{6 a d (a+b) \left (a+b \sin ^2(c+d x)\right )^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 211
Rule 3252
Rule 3260
Rule 3263
Rubi steps
\begin {align*} \int \frac {1}{\left (a+b \sin ^2(c+d x)\right )^4} \, dx &=\frac {b \cos (c+d x) \sin (c+d x)}{6 a (a+b) d \left (a+b \sin ^2(c+d x)\right )^3}-\frac {\int \frac {-6 a-5 b+4 b \sin ^2(c+d x)}{\left (a+b \sin ^2(c+d x)\right )^3} \, dx}{6 a (a+b)}\\ &=\frac {b \cos (c+d x) \sin (c+d x)}{6 a (a+b) d \left (a+b \sin ^2(c+d x)\right )^3}+\frac {5 b (2 a+b) \cos (c+d x) \sin (c+d x)}{24 a^2 (a+b)^2 d \left (a+b \sin ^2(c+d x)\right )^2}-\frac {\int \frac {-24 a^2-34 a b-15 b^2+10 b (2 a+b) \sin ^2(c+d x)}{\left (a+b \sin ^2(c+d x)\right )^2} \, dx}{24 a^2 (a+b)^2}\\ &=\frac {b \cos (c+d x) \sin (c+d x)}{6 a (a+b) d \left (a+b \sin ^2(c+d x)\right )^3}+\frac {5 b (2 a+b) \cos (c+d x) \sin (c+d x)}{24 a^2 (a+b)^2 d \left (a+b \sin ^2(c+d x)\right )^2}+\frac {b \left (44 a^2+44 a b+15 b^2\right ) \cos (c+d x) \sin (c+d x)}{48 a^3 (a+b)^3 d \left (a+b \sin ^2(c+d x)\right )}-\frac {\int -\frac {3 (2 a+b) \left (8 a^2+8 a b+5 b^2\right )}{a+b \sin ^2(c+d x)} \, dx}{48 a^3 (a+b)^3}\\ &=\frac {b \cos (c+d x) \sin (c+d x)}{6 a (a+b) d \left (a+b \sin ^2(c+d x)\right )^3}+\frac {5 b (2 a+b) \cos (c+d x) \sin (c+d x)}{24 a^2 (a+b)^2 d \left (a+b \sin ^2(c+d x)\right )^2}+\frac {b \left (44 a^2+44 a b+15 b^2\right ) \cos (c+d x) \sin (c+d x)}{48 a^3 (a+b)^3 d \left (a+b \sin ^2(c+d x)\right )}+\frac {\left ((2 a+b) \left (8 a^2+8 a b+5 b^2\right )\right ) \int \frac {1}{a+b \sin ^2(c+d x)} \, dx}{16 a^3 (a+b)^3}\\ &=\frac {b \cos (c+d x) \sin (c+d x)}{6 a (a+b) d \left (a+b \sin ^2(c+d x)\right )^3}+\frac {5 b (2 a+b) \cos (c+d x) \sin (c+d x)}{24 a^2 (a+b)^2 d \left (a+b \sin ^2(c+d x)\right )^2}+\frac {b \left (44 a^2+44 a b+15 b^2\right ) \cos (c+d x) \sin (c+d x)}{48 a^3 (a+b)^3 d \left (a+b \sin ^2(c+d x)\right )}+\frac {\left ((2 a+b) \left (8 a^2+8 a b+5 b^2\right )\right ) \text {Subst}\left (\int \frac {1}{a+(a+b) x^2} \, dx,x,\tan (c+d x)\right )}{16 a^3 (a+b)^3 d}\\ &=\frac {(2 a+b) \left (8 a^2+8 a b+5 b^2\right ) \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{16 a^{7/2} (a+b)^{7/2} d}+\frac {b \cos (c+d x) \sin (c+d x)}{6 a (a+b) d \left (a+b \sin ^2(c+d x)\right )^3}+\frac {5 b (2 a+b) \cos (c+d x) \sin (c+d x)}{24 a^2 (a+b)^2 d \left (a+b \sin ^2(c+d x)\right )^2}+\frac {b \left (44 a^2+44 a b+15 b^2\right ) \cos (c+d x) \sin (c+d x)}{48 a^3 (a+b)^3 d \left (a+b \sin ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.98, size = 201, normalized size = 0.98 \begin {gather*} \frac {\frac {3 \left (16 a^3+24 a^2 b+18 a b^2+5 b^3\right ) \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{(a+b)^{7/2}}+\frac {32 a^{5/2} b \sin (2 (c+d x))}{(a+b) (2 a+b-b \cos (2 (c+d x)))^3}+\frac {20 a^{3/2} b (2 a+b) \sin (2 (c+d x))}{(a+b)^2 (2 a+b-b \cos (2 (c+d x)))^2}+\frac {\sqrt {a} b \left (44 a^2+44 a b+15 b^2\right ) \sin (2 (c+d x))}{(a+b)^3 (2 a+b-b \cos (2 (c+d x)))}}{48 a^{7/2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.47, size = 230, normalized size = 1.12
method | result | size |
derivativedivides | \(\frac {\frac {\frac {\left (24 a^{2}+18 a b +5 b^{2}\right ) b \left (\tan ^{5}\left (d x +c \right )\right )}{16 a^{3} \left (a +b \right )}+\frac {\left (18 a^{2}+18 a b +5 b^{2}\right ) b \left (\tan ^{3}\left (d x +c \right )\right )}{6 a^{2} \left (a^{2}+2 a b +b^{2}\right )}+\frac {b \left (24 a^{2}+30 a b +11 b^{2}\right ) \tan \left (d x +c \right )}{16 a \left (a^{3}+3 a^{2} b +3 a \,b^{2}+b^{3}\right )}}{\left (a \left (\tan ^{2}\left (d x +c \right )\right )+b \left (\tan ^{2}\left (d x +c \right )\right )+a \right )^{3}}+\frac {\left (16 a^{3}+24 a^{2} b +18 a \,b^{2}+5 b^{3}\right ) \arctan \left (\frac {\left (a +b \right ) \tan \left (d x +c \right )}{\sqrt {a \left (a +b \right )}}\right )}{16 a^{3} \left (a^{3}+3 a^{2} b +3 a \,b^{2}+b^{3}\right ) \sqrt {a \left (a +b \right )}}}{d}\) | \(230\) |
default | \(\frac {\frac {\frac {\left (24 a^{2}+18 a b +5 b^{2}\right ) b \left (\tan ^{5}\left (d x +c \right )\right )}{16 a^{3} \left (a +b \right )}+\frac {\left (18 a^{2}+18 a b +5 b^{2}\right ) b \left (\tan ^{3}\left (d x +c \right )\right )}{6 a^{2} \left (a^{2}+2 a b +b^{2}\right )}+\frac {b \left (24 a^{2}+30 a b +11 b^{2}\right ) \tan \left (d x +c \right )}{16 a \left (a^{3}+3 a^{2} b +3 a \,b^{2}+b^{3}\right )}}{\left (a \left (\tan ^{2}\left (d x +c \right )\right )+b \left (\tan ^{2}\left (d x +c \right )\right )+a \right )^{3}}+\frac {\left (16 a^{3}+24 a^{2} b +18 a \,b^{2}+5 b^{3}\right ) \arctan \left (\frac {\left (a +b \right ) \tan \left (d x +c \right )}{\sqrt {a \left (a +b \right )}}\right )}{16 a^{3} \left (a^{3}+3 a^{2} b +3 a \,b^{2}+b^{3}\right ) \sqrt {a \left (a +b \right )}}}{d}\) | \(230\) |
risch | \(-\frac {i \left (15 b^{5} {\mathrm e}^{10 i \left (d x +c \right )}+1408 a^{5} {\mathrm e}^{6 i \left (d x +c \right )}+150 b^{5} {\mathrm e}^{6 i \left (d x +c \right )}-75 b^{5} {\mathrm e}^{8 i \left (d x +c \right )}-150 b^{5} {\mathrm e}^{4 i \left (d x +c \right )}+75 b^{5} {\mathrm e}^{2 i \left (d x +c \right )}-15 b^{5}-2592 a^{2} b^{3} {\mathrm e}^{4 i \left (d x +c \right )}+2744 a^{2} b^{3} {\mathrm e}^{6 i \left (d x +c \right )}+3520 b \,a^{4} {\mathrm e}^{6 i \left (d x +c \right )}-900 a^{2} b^{3} {\mathrm e}^{8 i \left (d x +c \right )}-480 b \,a^{4} {\mathrm e}^{8 i \left (d x +c \right )}+980 a \,b^{4} {\mathrm e}^{6 i \left (d x +c \right )}-3264 a^{3} b^{2} {\mathrm e}^{4 i \left (d x +c \right )}-960 a \,b^{4} {\mathrm e}^{4 i \left (d x +c \right )}+480 a^{3} b^{2} {\mathrm e}^{2 i \left (d x +c \right )}+390 a \,b^{4} {\mathrm e}^{2 i \left (d x +c \right )}+720 a^{2} b^{3} {\mathrm e}^{2 i \left (d x +c \right )}-1632 a^{4} b \,{\mathrm e}^{4 i \left (d x +c \right )}+72 a^{2} b^{3} {\mathrm e}^{10 i \left (d x +c \right )}+48 a^{3} b^{2} {\mathrm e}^{10 i \left (d x +c \right )}+54 a \,b^{4} {\mathrm e}^{10 i \left (d x +c \right )}-960 a^{3} b^{2} {\mathrm e}^{8 i \left (d x +c \right )}-420 a \,b^{4} {\mathrm e}^{8 i \left (d x +c \right )}+4176 a^{3} b^{2} {\mathrm e}^{6 i \left (d x +c \right )}-44 a^{2} b^{3}-44 a \,b^{4}\right )}{24 a^{3} \left (a +b \right )^{3} d \left (-b \,{\mathrm e}^{4 i \left (d x +c \right )}+4 a \,{\mathrm e}^{2 i \left (d x +c \right )}+2 b \,{\mathrm e}^{2 i \left (d x +c \right )}-b \right )^{3}}-\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {2 i a^{2}+2 i a b +2 a \sqrt {-a^{2}-a b}+b \sqrt {-a^{2}-a b}}{b \sqrt {-a^{2}-a b}}\right )}{2 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{3} d}-\frac {3 \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {2 i a^{2}+2 i a b +2 a \sqrt {-a^{2}-a b}+b \sqrt {-a^{2}-a b}}{b \sqrt {-a^{2}-a b}}\right ) b}{4 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{3} d a}-\frac {9 \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {2 i a^{2}+2 i a b +2 a \sqrt {-a^{2}-a b}+b \sqrt {-a^{2}-a b}}{b \sqrt {-a^{2}-a b}}\right ) b^{2}}{16 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{3} d \,a^{2}}-\frac {5 \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {2 i a^{2}+2 i a b +2 a \sqrt {-a^{2}-a b}+b \sqrt {-a^{2}-a b}}{b \sqrt {-a^{2}-a b}}\right ) b^{3}}{32 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{3} d \,a^{3}}+\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {-2 i a^{2}-2 i a b +2 a \sqrt {-a^{2}-a b}+b \sqrt {-a^{2}-a b}}{b \sqrt {-a^{2}-a b}}\right )}{2 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{3} d}+\frac {3 \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {-2 i a^{2}-2 i a b +2 a \sqrt {-a^{2}-a b}+b \sqrt {-a^{2}-a b}}{b \sqrt {-a^{2}-a b}}\right ) b}{4 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{3} d a}+\frac {9 \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {-2 i a^{2}-2 i a b +2 a \sqrt {-a^{2}-a b}+b \sqrt {-a^{2}-a b}}{b \sqrt {-a^{2}-a b}}\right ) b^{2}}{16 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{3} d \,a^{2}}+\frac {5 \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {-2 i a^{2}-2 i a b +2 a \sqrt {-a^{2}-a b}+b \sqrt {-a^{2}-a b}}{b \sqrt {-a^{2}-a b}}\right ) b^{3}}{32 \sqrt {-a^{2}-a b}\, \left (a +b \right )^{3} d \,a^{3}}\) | \(1212\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.56, size = 378, normalized size = 1.83 \begin {gather*} \frac {\frac {3 \, {\left (16 \, a^{3} + 24 \, a^{2} b + 18 \, a b^{2} + 5 \, b^{3}\right )} \arctan \left (\frac {{\left (a + b\right )} \tan \left (d x + c\right )}{\sqrt {{\left (a + b\right )} a}}\right )}{{\left (a^{6} + 3 \, a^{5} b + 3 \, a^{4} b^{2} + a^{3} b^{3}\right )} \sqrt {{\left (a + b\right )} a}} + \frac {3 \, {\left (24 \, a^{4} b + 66 \, a^{3} b^{2} + 65 \, a^{2} b^{3} + 28 \, a b^{4} + 5 \, b^{5}\right )} \tan \left (d x + c\right )^{5} + 8 \, {\left (18 \, a^{4} b + 36 \, a^{3} b^{2} + 23 \, a^{2} b^{3} + 5 \, a b^{4}\right )} \tan \left (d x + c\right )^{3} + 3 \, {\left (24 \, a^{4} b + 30 \, a^{3} b^{2} + 11 \, a^{2} b^{3}\right )} \tan \left (d x + c\right )}{a^{9} + 3 \, a^{8} b + 3 \, a^{7} b^{2} + a^{6} b^{3} + {\left (a^{9} + 6 \, a^{8} b + 15 \, a^{7} b^{2} + 20 \, a^{6} b^{3} + 15 \, a^{5} b^{4} + 6 \, a^{4} b^{5} + a^{3} b^{6}\right )} \tan \left (d x + c\right )^{6} + 3 \, {\left (a^{9} + 5 \, a^{8} b + 10 \, a^{7} b^{2} + 10 \, a^{6} b^{3} + 5 \, a^{5} b^{4} + a^{4} b^{5}\right )} \tan \left (d x + c\right )^{4} + 3 \, {\left (a^{9} + 4 \, a^{8} b + 6 \, a^{7} b^{2} + 4 \, a^{6} b^{3} + a^{5} b^{4}\right )} \tan \left (d x + c\right )^{2}}}{48 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 630 vs.
\(2 (190) = 380\).
time = 0.45, size = 1361, normalized size = 6.61 \begin {gather*} \left [-\frac {3 \, {\left ({\left (16 \, a^{3} b^{3} + 24 \, a^{2} b^{4} + 18 \, a b^{5} + 5 \, b^{6}\right )} \cos \left (d x + c\right )^{6} - 16 \, a^{6} - 72 \, a^{5} b - 138 \, a^{4} b^{2} - 147 \, a^{3} b^{3} - 93 \, a^{2} b^{4} - 33 \, a b^{5} - 5 \, b^{6} - 3 \, {\left (16 \, a^{4} b^{2} + 40 \, a^{3} b^{3} + 42 \, a^{2} b^{4} + 23 \, a b^{5} + 5 \, b^{6}\right )} \cos \left (d x + c\right )^{4} + 3 \, {\left (16 \, a^{5} b + 56 \, a^{4} b^{2} + 82 \, a^{3} b^{3} + 65 \, a^{2} b^{4} + 28 \, a b^{5} + 5 \, b^{6}\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {-a^{2} - a b} \log \left (\frac {{\left (8 \, a^{2} + 8 \, a b + b^{2}\right )} \cos \left (d x + c\right )^{4} - 2 \, {\left (4 \, a^{2} + 5 \, a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + 4 \, {\left ({\left (2 \, a + b\right )} \cos \left (d x + c\right )^{3} - {\left (a + b\right )} \cos \left (d x + c\right )\right )} \sqrt {-a^{2} - a b} \sin \left (d x + c\right ) + a^{2} + 2 \, a b + b^{2}}{b^{2} \cos \left (d x + c\right )^{4} - 2 \, {\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + a^{2} + 2 \, a b + b^{2}}\right ) + 4 \, {\left ({\left (44 \, a^{4} b^{3} + 88 \, a^{3} b^{4} + 59 \, a^{2} b^{5} + 15 \, a b^{6}\right )} \cos \left (d x + c\right )^{5} - 2 \, {\left (54 \, a^{5} b^{2} + 157 \, a^{4} b^{3} + 167 \, a^{3} b^{4} + 79 \, a^{2} b^{5} + 15 \, a b^{6}\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (24 \, a^{6} b + 90 \, a^{5} b^{2} + 131 \, a^{4} b^{3} + 93 \, a^{3} b^{4} + 33 \, a^{2} b^{5} + 5 \, a b^{6}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{192 \, {\left ({\left (a^{8} b^{3} + 4 \, a^{7} b^{4} + 6 \, a^{6} b^{5} + 4 \, a^{5} b^{6} + a^{4} b^{7}\right )} d \cos \left (d x + c\right )^{6} - 3 \, {\left (a^{9} b^{2} + 5 \, a^{8} b^{3} + 10 \, a^{7} b^{4} + 10 \, a^{6} b^{5} + 5 \, a^{5} b^{6} + a^{4} b^{7}\right )} d \cos \left (d x + c\right )^{4} + 3 \, {\left (a^{10} b + 6 \, a^{9} b^{2} + 15 \, a^{8} b^{3} + 20 \, a^{7} b^{4} + 15 \, a^{6} b^{5} + 6 \, a^{5} b^{6} + a^{4} b^{7}\right )} d \cos \left (d x + c\right )^{2} - {\left (a^{11} + 7 \, a^{10} b + 21 \, a^{9} b^{2} + 35 \, a^{8} b^{3} + 35 \, a^{7} b^{4} + 21 \, a^{6} b^{5} + 7 \, a^{5} b^{6} + a^{4} b^{7}\right )} d\right )}}, -\frac {3 \, {\left ({\left (16 \, a^{3} b^{3} + 24 \, a^{2} b^{4} + 18 \, a b^{5} + 5 \, b^{6}\right )} \cos \left (d x + c\right )^{6} - 16 \, a^{6} - 72 \, a^{5} b - 138 \, a^{4} b^{2} - 147 \, a^{3} b^{3} - 93 \, a^{2} b^{4} - 33 \, a b^{5} - 5 \, b^{6} - 3 \, {\left (16 \, a^{4} b^{2} + 40 \, a^{3} b^{3} + 42 \, a^{2} b^{4} + 23 \, a b^{5} + 5 \, b^{6}\right )} \cos \left (d x + c\right )^{4} + 3 \, {\left (16 \, a^{5} b + 56 \, a^{4} b^{2} + 82 \, a^{3} b^{3} + 65 \, a^{2} b^{4} + 28 \, a b^{5} + 5 \, b^{6}\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {a^{2} + a b} \arctan \left (\frac {{\left (2 \, a + b\right )} \cos \left (d x + c\right )^{2} - a - b}{2 \, \sqrt {a^{2} + a b} \cos \left (d x + c\right ) \sin \left (d x + c\right )}\right ) + 2 \, {\left ({\left (44 \, a^{4} b^{3} + 88 \, a^{3} b^{4} + 59 \, a^{2} b^{5} + 15 \, a b^{6}\right )} \cos \left (d x + c\right )^{5} - 2 \, {\left (54 \, a^{5} b^{2} + 157 \, a^{4} b^{3} + 167 \, a^{3} b^{4} + 79 \, a^{2} b^{5} + 15 \, a b^{6}\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (24 \, a^{6} b + 90 \, a^{5} b^{2} + 131 \, a^{4} b^{3} + 93 \, a^{3} b^{4} + 33 \, a^{2} b^{5} + 5 \, a b^{6}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{96 \, {\left ({\left (a^{8} b^{3} + 4 \, a^{7} b^{4} + 6 \, a^{6} b^{5} + 4 \, a^{5} b^{6} + a^{4} b^{7}\right )} d \cos \left (d x + c\right )^{6} - 3 \, {\left (a^{9} b^{2} + 5 \, a^{8} b^{3} + 10 \, a^{7} b^{4} + 10 \, a^{6} b^{5} + 5 \, a^{5} b^{6} + a^{4} b^{7}\right )} d \cos \left (d x + c\right )^{4} + 3 \, {\left (a^{10} b + 6 \, a^{9} b^{2} + 15 \, a^{8} b^{3} + 20 \, a^{7} b^{4} + 15 \, a^{6} b^{5} + 6 \, a^{5} b^{6} + a^{4} b^{7}\right )} d \cos \left (d x + c\right )^{2} - {\left (a^{11} + 7 \, a^{10} b + 21 \, a^{9} b^{2} + 35 \, a^{8} b^{3} + 35 \, a^{7} b^{4} + 21 \, a^{6} b^{5} + 7 \, a^{5} b^{6} + a^{4} b^{7}\right )} d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.52, size = 344, normalized size = 1.67 \begin {gather*} \frac {\frac {3 \, {\left (16 \, a^{3} + 24 \, a^{2} b + 18 \, a b^{2} + 5 \, b^{3}\right )} {\left (\pi \left \lfloor \frac {d x + c}{\pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, a + 2 \, b\right ) + \arctan \left (\frac {a \tan \left (d x + c\right ) + b \tan \left (d x + c\right )}{\sqrt {a^{2} + a b}}\right )\right )}}{{\left (a^{6} + 3 \, a^{5} b + 3 \, a^{4} b^{2} + a^{3} b^{3}\right )} \sqrt {a^{2} + a b}} + \frac {72 \, a^{4} b \tan \left (d x + c\right )^{5} + 198 \, a^{3} b^{2} \tan \left (d x + c\right )^{5} + 195 \, a^{2} b^{3} \tan \left (d x + c\right )^{5} + 84 \, a b^{4} \tan \left (d x + c\right )^{5} + 15 \, b^{5} \tan \left (d x + c\right )^{5} + 144 \, a^{4} b \tan \left (d x + c\right )^{3} + 288 \, a^{3} b^{2} \tan \left (d x + c\right )^{3} + 184 \, a^{2} b^{3} \tan \left (d x + c\right )^{3} + 40 \, a b^{4} \tan \left (d x + c\right )^{3} + 72 \, a^{4} b \tan \left (d x + c\right ) + 90 \, a^{3} b^{2} \tan \left (d x + c\right ) + 33 \, a^{2} b^{3} \tan \left (d x + c\right )}{{\left (a^{6} + 3 \, a^{5} b + 3 \, a^{4} b^{2} + a^{3} b^{3}\right )} {\left (a \tan \left (d x + c\right )^{2} + b \tan \left (d x + c\right )^{2} + a\right )}^{3}}}{48 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 15.44, size = 339, normalized size = 1.65 \begin {gather*} \frac {\frac {\mathrm {tan}\left (c+d\,x\right )\,\left (24\,a^2\,b+30\,a\,b^2+11\,b^3\right )}{16\,a\,\left (a^3+3\,a^2\,b+3\,a\,b^2+b^3\right )}+\frac {{\mathrm {tan}\left (c+d\,x\right )}^3\,\left (18\,a^2\,b+18\,a\,b^2+5\,b^3\right )}{6\,a^2\,\left (a^2+2\,a\,b+b^2\right )}+\frac {{\mathrm {tan}\left (c+d\,x\right )}^5\,\left (24\,a^2\,b+18\,a\,b^2+5\,b^3\right )}{16\,a^3\,\left (a+b\right )}}{d\,\left ({\mathrm {tan}\left (c+d\,x\right )}^6\,\left (a^3+3\,a^2\,b+3\,a\,b^2+b^3\right )+{\mathrm {tan}\left (c+d\,x\right )}^2\,\left (3\,a^3+3\,b\,a^2\right )+{\mathrm {tan}\left (c+d\,x\right )}^4\,\left (3\,a^3+6\,a^2\,b+3\,a\,b^2\right )+a^3\right )}+\frac {\mathrm {atan}\left (\frac {\mathrm {tan}\left (c+d\,x\right )\,\left (2\,a+b\right )\,\left (2\,a+2\,b\right )\,\left (8\,a^2+8\,a\,b+5\,b^2\right )\,\left (a^3+3\,a^2\,b+3\,a\,b^2+b^3\right )}{2\,\sqrt {a}\,{\left (a+b\right )}^{7/2}\,\left (16\,a^3+24\,a^2\,b+18\,a\,b^2+5\,b^3\right )}\right )\,\left (2\,a+b\right )\,\left (8\,a^2+8\,a\,b+5\,b^2\right )}{16\,a^{7/2}\,d\,{\left (a+b\right )}^{7/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________